package com.example.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("tb_order_item")
public class OrderItem {//单件订单物品实体类
  @TableId(type = IdType.AUTO)
  Integer id;
  @TableField("order_id")
  String oid;//订单id
  @TableField("item_id")
  String pid;//商品id
  @TableField(exist = false)
  Integer cmid = 0;//评论ID，暂搁置
  @TableField("num")
  Integer number;
  @TableField ("total_fee")
  BigDecimal sum;
  @TableField("title")
  String name;
  BigDecimal price;




}
